package com.atguigu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@MapperScan(basePackages = "com.atguigu.config")//不要用ComponentScan
@EnableDiscoveryClient//服务注册发现
public class ServiceCmnApplication {
    public static void main(String[] args) { SpringApplication.run(ServiceCmnApplication.class, args); }
}
